function updateDetails()
{
	var total = 0;
	var score = 0;

	
	 formElement = document.form1.q1
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q2
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q3
	    if (formElement[0].checked == true)
	    {
	    	score = score - 10;
	    }
	    
	    formElement = document.form1.q4
	    if (formElement[0].checked == true)
	    {
	    	score = score - 10;
	    }
	    
	    formElement = document.form1.q5
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q6
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q7
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q8
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q9
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
		formElement = document.form1.q10
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q11
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	    formElement = document.form1.q12
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q13
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q14
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q15
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q16
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q17
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q18
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q19
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	        formElement = document.form1.q20
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	            formElement = document.form1.q21
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	            formElement = document.form1.q22
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	            formElement = document.form1.q23
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	            formElement = document.form1.q24
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
	    
	            formElement = document.form1.q25
	    if (formElement[0].checked == true)
	    {
	    	score = score + 10;
	    }
		
	if ( score >= 60 && score <= 200 == true)
		{ 
			alert ( "Your profile page shows that you have many health issues which could complicate nutrition or exercise. Print your answers and consult your doctor before engaging in any of the practices listed in this module.");
		}
		
	if ( score >= 30 && score <= 60 == true)
		{
			alert ( "You are in relatively healthy shape despite a few issues. It is still wise to consult a physician before changing your routine.");
		}
	
	if ( score <= 20 == true)
		{
			alert ( "You have very few health issues! Be happy!" );
		}
	if ( score >= 225 == true)
		{
			alert ( "You are Mr. Burns. You have every ailment known to man, including some that have yet to be discovered. The slighest breeze could cause you to shut down completely. It would really be wise to find a hospital and live there.");
			alert ( "Seriously, go see a doctor.");
		}
	
}    